package com.lzy.wzy.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ProductionManagementHoursBean {

    @NotBlank
    private String name;

    @NotBlank
    private String jobNumber;

    @NotBlank
    private String position;

    @NotNull
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private LocalDate recordDate;

    @NotBlank
    private String projectNumber;

    @NotBlank
    private String projectName;

    @NotNull
    private float workingTime;

    @NotNull
    private float overTime;

    @NotNull
    private float totalWorkingTime;

    @NotBlank
    private String remarks;

    private int year;

    private int month;
}
